<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Ananas Library: Исходный файл binreloc.h</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Создано системой Doxygen 1.5.6 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Титульная&nbsp;страница</span></a></li>
      <li><a href="annotated.html"><span>Классы</span></a></li>
      <li class="current"><a href="files.html"><span>Файлы</span></a></li>
    </ul>
  </div>
<h1>binreloc.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * BinReloc - a library for creating relocatable executables</span>
<a name="l00003"></a>00003 <span class="comment"> * Written by: Hongli Lai &lt;h.lai@chello.nl&gt;</span>
<a name="l00004"></a>00004 <span class="comment"> * http://autopackage.org/</span>
<a name="l00005"></a>00005 <span class="comment"> *</span>
<a name="l00006"></a>00006 <span class="comment"> * This source code is public domain. You can relicense this code</span>
<a name="l00007"></a>00007 <span class="comment"> * under whatever license you want.</span>
<a name="l00008"></a>00008 <span class="comment"> *</span>
<a name="l00009"></a>00009 <span class="comment"> * See http://autopackage.org/docs/binreloc/ for</span>
<a name="l00010"></a>00010 <span class="comment"> * more information and how to use this.</span>
<a name="l00011"></a>00011 <span class="comment"> */</span>
<a name="l00012"></a>00012 
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef __BINRELOC_H__</span>
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define __BINRELOC_H__</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span>
<a name="l00016"></a>00016 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00017"></a>00017 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {
<a name="l00018"></a>00018 <span class="preprocessor">#endif </span><span class="comment">/* __cplusplus */</span>
<a name="l00019"></a>00019 
<a name="l00020"></a>00020 
<a name="l00022"></a>00022 <span class="keyword">typedef</span> <span class="keyword">enum</span> {
<a name="l00024"></a>00024         BR_INIT_ERROR_NOMEM,
<a name="l00026"></a>00026         BR_INIT_ERROR_OPEN_MAPS,
<a name="l00028"></a>00028         BR_INIT_ERROR_READ_MAPS,
<a name="l00030"></a>00030         BR_INIT_ERROR_INVALID_MAPS,
<a name="l00032"></a>00032         BR_INIT_ERROR_DISABLED
<a name="l00033"></a>00033 } BrInitError;
<a name="l00034"></a>00034 
<a name="l00035"></a>00035 
<a name="l00036"></a>00036 <span class="preprocessor">#ifndef BINRELOC_RUNNING_DOXYGEN</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span><span class="comment">/* Mangle symbol names to avoid symbol collisions with other ELF objects. */</span>
<a name="l00038"></a>00038 <span class="preprocessor">        #define br_init             vtwc43395327882633_br_init</span>
<a name="l00039"></a>00039 <span class="preprocessor"></span><span class="preprocessor">        #define br_init_lib         vtwc43395327882633_br_init_lib</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span><span class="preprocessor">        #define br_find_exe         vtwc43395327882633_br_find_exe</span>
<a name="l00041"></a>00041 <span class="preprocessor"></span><span class="preprocessor">        #define br_find_exe_dir     vtwc43395327882633_br_find_exe_dir</span>
<a name="l00042"></a>00042 <span class="preprocessor"></span><span class="preprocessor">        #define br_find_prefix      vtwc43395327882633_br_find_prefix</span>
<a name="l00043"></a>00043 <span class="preprocessor"></span><span class="preprocessor">        #define br_find_bin_dir     vtwc43395327882633_br_find_bin_dir</span>
<a name="l00044"></a>00044 <span class="preprocessor"></span><span class="preprocessor">        #define br_find_sbin_dir    vtwc43395327882633_br_find_sbin_dir</span>
<a name="l00045"></a>00045 <span class="preprocessor"></span><span class="preprocessor">        #define br_find_data_dir    vtwc43395327882633_br_find_data_dir</span>
<a name="l00046"></a>00046 <span class="preprocessor"></span><span class="preprocessor">        #define br_find_locale_dir  vtwc43395327882633_br_find_locale_dir</span>
<a name="l00047"></a>00047 <span class="preprocessor"></span><span class="preprocessor">        #define br_find_lib_dir     vtwc43395327882633_br_find_lib_dir</span>
<a name="l00048"></a>00048 <span class="preprocessor"></span><span class="preprocessor">        #define br_find_libexec_dir vtwc43395327882633_br_find_libexec_dir</span>
<a name="l00049"></a>00049 <span class="preprocessor"></span><span class="preprocessor">        #define br_find_etc_dir     vtwc43395327882633_br_find_etc_dir</span>
<a name="l00050"></a>00050 <span class="preprocessor"></span><span class="preprocessor">        #define br_strcat           vtwc43395327882633_br_strcat</span>
<a name="l00051"></a>00051 <span class="preprocessor"></span><span class="preprocessor">        #define br_build_path       vtwc43395327882633_br_build_path</span>
<a name="l00052"></a>00052 <span class="preprocessor"></span><span class="preprocessor">        #define br_dirname          vtwc43395327882633_br_dirname</span>
<a name="l00053"></a>00053 <span class="preprocessor"></span>
<a name="l00054"></a>00054 
<a name="l00055"></a>00055 <span class="preprocessor">#endif</span>
<a name="l00056"></a>00056 <span class="preprocessor"></span><span class="keywordtype">int</span>   br_init             (BrInitError *error);
<a name="l00057"></a>00057 <span class="keywordtype">int</span>   br_init_lib         (BrInitError *error);
<a name="l00058"></a>00058 
<a name="l00059"></a>00059 <span class="keywordtype">char</span> *br_find_exe         (<span class="keyword">const</span> <span class="keywordtype">char</span> *default_exe);
<a name="l00060"></a>00060 <span class="keywordtype">char</span> *br_find_exe_dir     (<span class="keyword">const</span> <span class="keywordtype">char</span> *default_dir);
<a name="l00061"></a>00061 <span class="keywordtype">char</span> *br_find_prefix      (<span class="keyword">const</span> <span class="keywordtype">char</span> *default_prefix);
<a name="l00062"></a>00062 <span class="keywordtype">char</span> *br_find_bin_dir     (<span class="keyword">const</span> <span class="keywordtype">char</span> *default_bin_dir);
<a name="l00063"></a>00063 <span class="keywordtype">char</span> *br_find_sbin_dir    (<span class="keyword">const</span> <span class="keywordtype">char</span> *default_sbin_dir);
<a name="l00064"></a>00064 <span class="keywordtype">char</span> *br_find_data_dir    (<span class="keyword">const</span> <span class="keywordtype">char</span> *default_data_dir);
<a name="l00065"></a>00065 <span class="keywordtype">char</span> *br_find_locale_dir  (<span class="keyword">const</span> <span class="keywordtype">char</span> *default_locale_dir);
<a name="l00066"></a>00066 <span class="keywordtype">char</span> *br_find_lib_dir     (<span class="keyword">const</span> <span class="keywordtype">char</span> *default_lib_dir);
<a name="l00067"></a>00067 <span class="keywordtype">char</span> *br_find_libexec_dir (<span class="keyword">const</span> <span class="keywordtype">char</span> *default_libexec_dir);
<a name="l00068"></a>00068 <span class="keywordtype">char</span> *br_find_etc_dir     (<span class="keyword">const</span> <span class="keywordtype">char</span> *default_etc_dir);
<a name="l00069"></a>00069 
<a name="l00070"></a>00070 <span class="comment">/* Utility functions */</span>
<a name="l00071"></a>00071 <span class="keywordtype">char</span> *br_strcat  (<span class="keyword">const</span> <span class="keywordtype">char</span> *str1, <span class="keyword">const</span> <span class="keywordtype">char</span> *str2);
<a name="l00072"></a>00072 <span class="keywordtype">char</span> *br_build_path (<span class="keyword">const</span> <span class="keywordtype">char</span> *dir, <span class="keyword">const</span> <span class="keywordtype">char</span> *file);
<a name="l00073"></a>00073 <span class="keywordtype">char</span> *br_dirname (<span class="keyword">const</span> <span class="keywordtype">char</span> *path);
<a name="l00074"></a>00074 
<a name="l00075"></a>00075 
<a name="l00076"></a>00076 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00077"></a>00077 <span class="preprocessor"></span>}
<a name="l00078"></a>00078 <span class="preprocessor">#endif </span><span class="comment">/* __cplusplus */</span>
<a name="l00079"></a>00079 
<a name="l00080"></a>00080 <span class="preprocessor">#endif </span><span class="comment">/* __BINRELOC_H__ */</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Документация по Ananas Library. Последние изменения: Sun Feb 1 21:47:14 2009. Создано системой&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>
